package com.majsubtense.core.achievements;

public class AchievementType <T extends Achievement> {
    public static final AchievementType<Achievement> ROOT;
    private final AchievementType<? super T> superType;

    private final String name;

    public AchievementType(AchievementType<? super T> superType, String name) {
        this.superType = superType;
        this.name = name;
    }

    public AchievementType<? super T> getSuperType() {
        return superType;
    }

    public String getName() {
        return name;
    }

    static {
        ROOT = new AchievementType<>(null, "ACHIEVEMENT");
    }
}
